package com.bw.inspection.api

import com.bw.common.api.BaseApiServer
import com.bw.common.entity.BaseRes
import com.bw.inspection.entity.InspectionEntity
import com.bw.inspection.entity.InspectionEntityItem
import com.bw.inspection.entity.NoInspenctionEntityItem
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Path

interface InspectionApiServer:BaseApiServer {
    //点位管理列表
    @GET("/api/patrol-points")
    suspend fun getInspection(): BaseRes<List<InspectionEntityItem>>
    //新增点位(添加实体类与点位列表实体类一致)
    @POST("/api/patrol-points")
    suspend fun postAddInspection(@Body inspectionEntity: InspectionEntityItem): BaseRes<InspectionEntityItem>
    //点位详情（实体类一致）
    @GET("/api/patrol-points/{id}")
    suspend fun getInspectionDetail(@Path("id")id:Int):BaseRes<InspectionEntityItem>
    //巡检代办
    @GET("/api/patrol-tasks/by-status/{status}")
    suspend fun getPatrolTaskByStatus(@Path("status")status:String):BaseRes<List<NoInspenctionEntityItem>>
    //巡检代办详情页
    @GET("/api/patrol-tasks/{id}")
    suspend fun getPatrolTaskDetail(@Path("id")id:Int):BaseRes<NoInspenctionEntityItem>



}